<?php $this->load->view(TEMPLATE_NAME.'/front/header'); ?>
<?php $this->load->view(TEMPLATE_NAME.'/front/side_left'); ?>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){    
    $("#login_form").validate({    	                 
        rules: {            
    		username_directory: "required",            
            password_directory: "required"          
        },        
        messages: {           
        	username_directory: "Please input your e-mail address",            
            password_directory: "Please input your password"
        }          
      });
});
</script>
<style type="text/css" title="text/css">
/* Style for jquery validation */
/*#login_form label.error {    
    background-color: #CF118C;    
    color: #FFF;    
    padding: 5px 10px;
	float:none; 
    height:19px;    
    line-height:19px;
    position:relative;
    font-weight: normal;
}*/
</style>
<div class="page">
<h2><!--Sign In to Turn it Around Directory Panel-->Advertiser Log-In </h2>
<!--
<p class="f13 black"><strong>Private and Confidential</strong>. All information here is NOT shared and held <strong>highly confidential</strong>. <br/>
<span class="purple">We will <strong>NEVER</strong> share, trade or disclose any information with any third party - <strong>EVER</strong>!</span></p>
-->
<p class="normal_text">Input your e-mail and password to manage your directory listing<br></p>
<hr/>
<?php if(!empty($error_directory)): ?>
<p class="inform f12 error_message" id="error_recaptcha"><strong>Error:</strong> <?php echo $error_directory ?></p>
<?php endif;?>
<?php 
$attributes = array('id' => 'login_form');
echo form_open('directory/login', $attributes);
 ?>
<!--<br/>-->
<div class="dir">
<label>Email Address: <span style="font-weight:normal;" class="purple"><!--*-->(required)</span></label><?php echo form_input('username_directory',$username); ?><br/>
<?php echo form_error('username_directory','<p id="error_recaptcha" class="inform f12 error_message"><strong>Error:</strong>','</p>') ?>
<!--<p class="inform f12"><strong>Your username will be displayed on comments and posts.</strong> <br/>
You can use a nickname or your real name. <span class="purple">(This can be changed at any time.)</span></p>-->
<label><!--Your-->Password: <span style="font-weight:normal;" class="purple"><!--*-->(required)</span></label><?php echo form_password('password_directory'); ?><br/>
<?php echo form_error('password_directory','<p id="error_recaptcha" class="inform f12 error_message"><strong>Error:</strong>','</p>') ?>
<!--<hr/>-->
<?php if(!empty($recaptcha)){ ?>
<label>Security Code: <strong class="purple">*</strong></label><?php  echo $recaptcha; ?>
<?php echo form_error('recaptcha_challenge_field','<p id="error_recaptcha" class="inform f12 error_message"><strong>Error:</strong>','</p>') ?>
<hr/>
<?php } ?>
<?php /*if(!empty($error_message)){?>
<?php echo $error_message ?>
<?php } */?>
<!--<div style="border:1px solid #C0BBB1;margin:10px 0;padding:10px;">-->
<hr />
<label>&nbsp;</label>
<label>
<?php 
$form_button = array(
  'type'=>'submit',
  'name'=>'submit',
  'value'=>'submit',
  'content'=>'Submit',
);
echo form_button($form_button) ?></label>sssssssssssss
<hr />
<!--</div>-->
<p class="normal_text">
Not registered to advertise in directory? <strong><?php echo anchor('directory/advertise','Sign up now!'); ?></strong> </p>
<hr/>
<?php /* 
?>
<p class="normal_text">
Forgot password? <?php echo anchor('directory/forgot_password','Click here'); ?> </p>
<hr/>
<!-- dir -->
<?php */?>
</div>
<?php echo form_close(); ?><!-- formstep -->

</div>
<?php $this->load->view(TEMPLATE_NAME.'/front/side_right'); ?>

<?php $this->load->view(TEMPLATE_NAME.'/front/footer'); ?>
